/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package practica3;

/**
 *
 * @author Ari Mendez
 */
public class nodo {
    
    tarjeta tar ;
    nodo ant ;
    nodo sig;
    
    public nodo(tarjeta t){
        this.tar = t;
    }
    
     public nodo(){
        tar = null;
        ant = null;
        sig = null;
    }
     
    public void setTarjeta(tarjeta t){
        this.tar = t;
    }
    public tarjeta getTarjeta(){
        return this.tar;
    }
    public void setAnterior(nodo n){
        this.ant = n;
    }
    public nodo getAnterior(){
        return this.ant;
    }
    public void setSiguiente(nodo n){
        this.sig= n;
    }
    public nodo getSiguiente(){
        return this.sig;
    }
}
